﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp6
{
    class Book
    {

        public int Id { get; set; }
        public string Name { get; set; }
        public int Price { get; set; }
        public void SetupBookInfo(int id, string name, int price) 
        {
            Id = id;
            Name = name;
            Price = price;
        }
        public void PrintBook ()
        {
            Console.WriteLine("书的序号：{0}  书名:{1}   价格:{2}",this.Id,this.Name,this.Price);
        }
    }
}
